Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to Laminas CI workflow for GHA #50

Merged
merged 1 commit into from
Feb 18, 2021

Conversation

weierophinney
Copy link
Member

Attempts to mimic what we were doing in the Travis configuration:

  • Provides a modified entrypoint that adds the ability to execute pre/post scripts if they are present and executable.
    If this approach works, then the functionality will be ported to the upstream container.
    • Provides a pre-run script that sets up apache and php-fpm for online testing.
    • Provides a post-run script that spits out the apache error/access logs.

@weierophinney weierophinney force-pushed the feature/ci-workflow branch 2 times, most recently from 4fd8b05 to 28a1cef Compare February 18, 2021 21:46
@weierophinney weierophinney added this to the 2.14.3 milestone Feb 18, 2021
@weierophinney weierophinney force-pushed the feature/ci-workflow branch 2 times, most recently from 9d3f0a9 to 4dd2595 Compare February 18, 2021 21:51
This patch adopts the Laminas CI workflow, following some prototyping (and the release) for the 1.1.0 release of the CI container to allow for pre/post run scripts.

This patch provides the following:

- `.laminas-ci/pre-run.sh`:
  - exits early if not for a PHPUnit job
  - installs the CI version of the PHPUnit configuration
  - installs apache2 and the php-fpm relevant to the current PHP version
  - enables required apache2 modules
  - provides php-fpm and apache configuration for running tests against
    - found in `laminas-ci/{site.conf,proxy.conf}`
  - starts the php-fpm and apache2 services
- `.laminas-ci/post-run.sh`:
  - exits early if not for a PHPUnit job
  - if a non-zero exit status was provided, it cats the apache2 access and error logs

Signed-off-by: Matthew Weier O'Phinney <[email protected]>
@weierophinney weierophinney merged commit 41d900c into laminas:2.14.x Feb 18, 2021
@weierophinney weierophinney deleted the feature/ci-workflow branch February 18, 2021 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant